package com.hue.springbootswagger.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {
    @ApiOperation(value = "测试接口，返回index")
    @GetMapping("/index")
    public String index(@RequestParam("msg") String msg){
        return "index";
    }
}
